package com.itheima.service;

import java.util.Scanner;

public class Tist6 {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        System.out.println("请输入一个三位数的整数");
        int i = sc.nextInt();
        int ge= i%10;
        int shi=i/10%10;
        int bai=i/100;
        System.out.println("整数"+i+"个位为"+ge);
        System.out.println("整数"+i+"十位为"+shi);
        System.out.println("整数"+i+"百位为"+bai);

    }
}
